package cn.codenest.mongots;

import cn.codenest.mongots.utils.MongoUtil;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoIterable;
import org.bson.Document;

import java.util.List;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        String dbName = "test";
        String collName = "log";
        MongoCollection<Document> coll = MongoUtil.instance.getCollection(dbName, collName);
        MongoIterable<String> dbs = MongoUtil.instance.getAllDBNames();
        List<String> colls=MongoUtil.instance.getAllCollections("test");
    }
}
